/*
 * @Author: SevDaisy十七散人 
 * @Date: 2020-07-04 08:56:10 
 * @Last Modified time: 2020-07-04 13:06:13
 */
package zyy.model;

import java.util.Date;

import zyy.util.Bus;

// 视图创建
// CREATE VIEW riderInfo as
// SELECT
//   r.RiderID RiderID,
//   r.loginName loginName,
//   r.rName rName,
//   r.rLevel rLevel,
//   r.rTime rTime,
//   count(w.OrderID) workCnt
// FROM
//   Rider r
//   LEFT JOIN Rider_Work w ON r.RiderID = w.RiderID
// GROUP BY
//   r.RiderID
public class BeanRider {
  public static final String[] tblTitles = { "骑手ID", "姓名", "级别", "已交付订单数", "注册日期", "登录账户名" };
  private int RiderID;

  private String lName;
  private String rName;
  private Date rTime;
  private String rLevel;// "新人" "正式骑手" "精英骑手" "王牌骑手"
  private int workCnt;

  public String getCell(int col) {
    switch (col) {
      case 0:
        return this.RiderID + "";
      case 1:
        return this.rName;
      case 2:
        return this.rLevel;
      case 3:
        return this.workCnt + "";
      case 4:
        return this.rTime == null ? "" : Bus.sdf.format(rTime);
      case 5:
        return this.lName;
      default:
        return "";
    }
  }

  public int getRiderID() {
    return RiderID;
  }

  public void setRiderID(int riderID) {
    RiderID = riderID;
  }

  public String getrName() {
    return rName;
  }

  public void setrName(String rName) {
    this.rName = rName;
  }

  public Date getrTime() {
    return rTime;
  }

  public void setrTime(Date rTime) {
    this.rTime = rTime;
  }

  public String getrLevel() {
    return rLevel;
  }

  public void setrLevel(String rLevel) {
    this.rLevel = rLevel;
  }

  public String getlName() {
    return lName;
  }

  public void setlName(String lName) {
    this.lName = lName;
  }

  public int getWorkCnt() {
    return workCnt;
  }

  public void setWorkCnt(int workCnt) {
    this.workCnt = workCnt;
  }
}